package com.ruoyi.web.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.web.mapper.SignInRecordMapper;
import com.ruoyi.web.domain.SignInRecord;
import com.ruoyi.web.service.ISignInRecordService;

/**
 * 签到记录Service业务层处理
 *
 * @author jiwei
 * @date 2024-05-12
 */
@Service
public class SignInRecordServiceImpl extends ServiceImpl<SignInRecordMapper, SignInRecord> implements ISignInRecordService {
    @Autowired
    private SignInRecordMapper signInRecordMapper;

    /**
     * 查询签到记录
     *
     * @param id 签到记录主键
     * @return 签到记录
     */
    @Override
    public SignInRecord selectSignInRecordById(Long id) {
        return signInRecordMapper.selectSignInRecordById(id);
    }

    /**
     * 查询签到记录列表
     *
     * @param signInRecord 签到记录
     * @return 签到记录
     */
    @Override
    public List<SignInRecord> selectSignInRecordList(SignInRecord signInRecord) {
        return signInRecordMapper.selectSignInRecordList(signInRecord);
    }

    /**
     * 新增签到记录
     *
     * @param signInRecord 签到记录
     * @return 结果
     */
    @Override
    public int insertSignInRecord(SignInRecord signInRecord) {
            return signInRecordMapper.insertSignInRecord(signInRecord);
    }

    /**
     * 修改签到记录
     *
     * @param signInRecord 签到记录
     * @return 结果
     */
    @Override
    public int updateSignInRecord(SignInRecord signInRecord) {
        return signInRecordMapper.updateSignInRecord(signInRecord);
    }

    /**
     * 批量删除签到记录
     *
     * @param ids 需要删除的签到记录主键
     * @return 结果
     */
    @Override
    public int deleteSignInRecordByIds(Long[] ids) {
        return signInRecordMapper.deleteSignInRecordByIds(ids);
    }

    /**
     * 删除签到记录信息
     *
     * @param id 签到记录主键
     * @return 结果
     */
    @Override
    public int deleteSignInRecordById(Long id) {
        return signInRecordMapper.deleteSignInRecordById(id);
    }
}
